﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<VSA.Presentation.Models.ToDoCustomerItem>" %>
<%@ Import Namespace=" MVCControlsToolkit.Core" %>
<%@ Import Namespace=" MVCControlsToolkit.Controls" %>

            <td class="editor-field">
                <%: Html.DisplayField(model => model.CustomerId)%>
            </td>
            <td class="editor-field">
                <%: Html.DisplayField(model => model.CompanyName)%>
            </td>
            <td class="editor-label">
                <%: Html.ImgDataButton(DataButtonType.Edit, "../../Content/small_pencil.gif", null)%>
            </td>
            <td class="editor-label">
                <%:Html.DetailLink(Ajax, "Edit Details", DetailType.Display, "EditDetailToDo", "Customer",
                    new {
                        CustomerId = Model.CustomerId,
                        ViewHint = "../UserControl/Customer/DataGrid/DisplayDetailToDo"
                                    }, null)%>
                <%: Html.ActionLink("Delete Item", "DeleteDetailToDo", new {CustomerId = Model.CustomerId}) %>
                
            </td>